#define# __DATA__ <#include repeat="0" tp-data="{}"  file="http://yaf.local/goods" /> #end#
<#extends title="商品列表" data="{'list':[
{'name':'喜鹊筑家旗舰店','href':'###','title':''},
{'name':'博客','href':'###','title':''},
{'name':'网页地址'}
]}" />

<#beginBlock id="crumb" data="{'list':[
{'name':'喜鹊筑家旗舰店','href':'###','title':''},
{'name':'博客','href':'###','title':''},
{'name':'网页地址'}
]}">
<#endBlock>

<#Block:begin id="theader" data="{}">
<div class="sectionBorder-A3">
    <div class="sectionTable-B1 sectionTable-B1-5">
        <div class="sectionTitle-A4 sectionTitle-A4-2 sectionTitle-A4-3 sectionFloat-A1 sectionBg-A2">
            <ul class="clear">
                <li class="col-1">id</li>
                <li class="col-1">商品名称</li>
                <li class="col-1">价格</li>
            </ul>
        </div>
    </div>
</div>
<#Block:end>
<#Block:begin id="table" data="{'list':null}">

<%LAM.each(list,function(i){%>
<div class="sectionBorder-A3 mt1">
    <div class="sectionTable-B1 sectionTable-B1-5">
        <div class="sectionTitle-A4 sectionTitle-A4-2 sectionTitle-A4-3 sectionFloat-A1 sectionBg-A2">
            <ul class="clear">
                <%if(LAM.isset(this.bill_id)){%>
                    <li class="first col-7"><%=this.bill_id%></li>
                    <li class="first col-7"><%=this.shop_name%></li>
                    <li class="first col-7"><%=this.total_price%></li>
                    <li class="first col-7"><%=this.discount%></li>
                    <li class="first col-1" style="width:52%;">
                        <%=LAM.Template.getBlock("table",{"list":this.childs})%>
                    </li>
                <%}else{%>
                    <li class="col-1"><%=this.id%></li>
                    <li class="col-1"><%=this.name%></li>
                    <li class="col-1"><%=this.final_price%></li>
                <%}%>
            </ul>
        </div>
    </div>
</div>
<%});%>
<#Block:end>
<#Block:begin id="goods_list" data="{}">
<div class="sectionBorder-A3">
    <div class="sectionTable-B1 sectionTable-B1-5">
        <div class="sectionTitle-A4 sectionTitle-A4-2 sectionTitle-A4-3 sectionFloat-A1 sectionBg-A2">
            <ul class="clear">
                <li class="first col-7">订单号</li>
                <li class="col-7">超市名称</li>
                <li class="col-7">总价</li>
                <li class="col-7">折扣</li>
                <li class="col-2" style="width:52%;"><%=LAM.Template.getBlock("theader")%></li>
            </ul>
        </div>
    </div>
</div>
<%=LAM.Template.getBlock("table",{"list":__DATA__})%>

<#Block:end>
<#=block id="goods_list" />


<script type="text/javascript">
    LAM.run([jQuery],function ($) {
        'use strict';
        var System = this;


        // $.get('http://blog.admin/link-address/index',{
        //     'sorts_id':2
        // },function(D){
        //     var list = "没有数据";
        //     if(D.status){
        //         list = D.data;
        //     }
        //     console.log(list)
        //
        // },'json');

    });
</script>